package com.pai4j.common.enums.community;


import lombok.Getter;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;


/***
 * 资源分类
 */
@Getter
public enum ResourcePathEnum {

    PDF("电子书"),
    OFFICE("Office文档"),
    ZIP("压缩包（安装包、Jar、插件、源码等）"),
    MAC_SOFTWARE("MAC安装包"),
    WIN_SOFTWARE("WIN安装包"),
    CLOUD("云盘资源");

    private String path;

    ResourcePathEnum(String path) {
        this.path = path;
    }

    /***
     * 返回所有的资源分类
     * @return
     */
    public static List<String> getAllResourcePath() {

        return Arrays.stream(ResourcePathEnum.values()).map(ResourcePathEnum::name).collect(Collectors.toList());
    }
}
